﻿#pragma strict
private var tempsEcoule: float;
function Start () {
this.transform.position.z=-3;
tempsEcoule=0.0;
}

function Update () {

	this.transform.Translate(Vector3.up*0.05);
	tempsEcoule+=Time.deltaTime;
	if(tempsEcoule>=0.5)
	{
		Transform.DestroyImmediate(this.gameObject);
	}
}